// Programming_Scala/src/ch03/days-enumeration-script.scala

object WeekDay extends Enumeration {
  type WeekDay = Value
  val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}

import WeekDay._

def isWorkingDay( d: WeekDay ) = !( d == Sat || d == Sun )

WeekDay filter isWorkingDay foreach println
